<?php

/*
 * This file is part of the yuki package.
 * Copyright (c) 2011 olamedia <olamedia@gmail.com>
 *
 * Licensed under The MIT License
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

/**
 * yVirtualFileSystem
 *
 * @package yuki
 * @subpackage file
 * @author olamedia
 * @license http://www.opensource.org/licenses/mit-license.php MIT
 * @version SVN: $Id: yVirtualFileSystem.php 150 2011-02-20 10:06:54Z olamedia@gmail.com $
 */
class yVirtualFileSystem extends yFileSystem{
    protected $_instance = null;
    public function getInstance(){
        if ($this->_instance === null){
            $this->_instance = new self();
        }
        return $this->_instance;
    }
    public function getResource($path){
        
    }
    /**
     * Maps alias to real filesystem
     * map('local', $localFs->getRoot());
     * map('system', $localFs->getDirectory(realpath(dirname(__FILE__).'/../..')));
     * map('web', $localFs->getDirectory(realpath($_SERVER['DOCUMENT_ROOT'])));
     * @param <type> $alias
     * @param <type> $directory
     */
    public function map($alias, $directory){
        
    }
}

